package com.treasure.mall.biz.dto.condition;

import com.treasure.mall.biz.dto.BaseSearchDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * @author allan
 * @date 2019-10-17
 */
@Setter
@Getter
@ApiModel("订单列表筛选条件")
public class OrderSearchCondition implements BaseSearchDTO {
    private static final long serialVersionUID = 796629635617260590L;

    @ApiModelProperty(hidden = true)
    private String orderId;
    @ApiModelProperty(hidden = true)
    private long userId;
    @ApiModelProperty(hidden = true)
    private String userKey;

    /**
     * 卖家上级手机号码
     */
    private String parentMobile;

    /**
     * 上级ID
     */
    private Long parentId;
    /**
     * 订单状态
     * {@link  com.treasure.mall.zbq.common.ienum.order.OrderEnums.Status}
     */
    @ApiModelProperty(hidden = true)
    private int status = -1;
    /**
     * 支付状态
     * {@link com.treasure.mall.zbq.common.ienum.order.OrderEnums.PayStatus}
     */
    @ApiModelProperty(hidden = true)
    private int payStatus = -1;
    /**
     * 发货状态
     * {@link  com.treasure.mall.zbq.common.ienum.order.OrderEnums.DeliverStatus}
     */

    @ApiModelProperty(hidden = true)
    private int deliverStatus = -1;
    @ApiModelProperty(hidden = true)
    private String beginTime;
    @ApiModelProperty(hidden = true)
    private String endTime;
    @ApiModelProperty(hidden = true)
    private String payBeginTime;
    @ApiModelProperty(hidden = true)
    private String payEndTime;
    @ApiModelProperty(hidden = true)
    private String receiver;
    @ApiModelProperty(hidden = true)
    private long merchantId;
    @ApiModelProperty(hidden = true)
    private String goodsKey;
    /**
     * 适用于前端筛选的订单状态
     * {@link com.treasure.mall.zbq.common.ienum.order.OrderEnums.UserOrderStatus}
     */
    @ApiModelProperty("订单状态 0待付款 1待发货，2待收货 3售后中 4 已签收")
    private int userOrderStatus = -1;
    /**
     * 店铺名称
     */
    @ApiModelProperty(hidden = true)
    private String shopTitle;
    /**
     * 售后状态
     * {@link com.treasure.mall.zbq.common.ienum.order.OrderEnums.AfterSaleStatus}
     */
    @ApiModelProperty(hidden = true)
    private int afterSaleStatus = -1;
}
